package com.crm.pojo;

import java.util.List;
import java.util.Map;

public class PageInfo {
	private Integer pageNumber;//当前页码
	private Integer pageSize;//每页大小
	private Integer pages;//总页数
	private Integer totalCount;//总记录数
	private List<Map> result;//每页显示的数据
	
	public Integer getPageNumber() {
		return pageNumber;
	}
	public void setPageNumber(Integer pageNumber) {
		this.pageNumber = pageNumber;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getPages() {
		if(totalCount%pageSize==0) {
			return totalCount/pageSize;
		}else {
			return totalCount/pageSize+1;
		}
	}
	public void setPages(Integer pages) {
		this.pages = pages;
	}
	public Integer getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}
	public List<Map> getResult() {
		return result;
	}
	public void setResult(List<Map> result) {
		this.result = result;
	}
	
}
